<php>
    $importDatetimePicker = true;
    //默认为当前时间
    if(!$field['value']){
    $field['value'] = time();
    }
</php>
<input type="hidden" name="{$field.name}" value="{$field.value}"/>
<input type="text" data-field-name="{$field.name}" class="text input-large time" value="{$field.value|time_format}" placeholder="请选择时间" />